cmake_minimum_required(VERSION 3.16)
project(PicProc)
set(CMAKE_CXX_STANDARD 14)

set (OpenCV_DIR /Users/WangZZ/code/build_opencv)
find_package(OpenCV REQUIRED)
set(CMAKE_PREFIX_PATH /usr/local/lib/libtorch/share/cmake/Torch)
find_package(Torch REQUIRED)

include_directories(${Torch_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
#add_library(PicProc SHARED library.cpp library.h main.cpp)
add_executable(testPicProc main.cpp)

target_link_libraries(testPicProc ${TORCH_LIBRARIES} ${OpenCV_LIBS} )
#target_link_libraries(PicProc ${TORCH_LIBRARIES} ${OpenCV_LIBS})

